package vip.xiaonuo.app.modular.recharge.controller.front;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.app.modular.recharge.service.AppRechargePackageService;
import vip.xiaonuo.core.pojo.response.ResponseData;

import javax.annotation.Resource;

/**
 * <p>Title : 充值套餐前端控制器</p>
 * <p>Description : </p>
 * <p>DevelopTools : IDEA</p>
 * <p>DevelopSystem : Windows11</p>
 *
 * @Author : zxw
 * @Date 2023/10/7 15:08
 */
@RestController
@RequestMapping("/api/rechargePackage")
public class ApiAppRechargePackageController {

    @Resource
    private AppRechargePackageService appRechargePackageService;

    /**
     * 充值套餐列表
     *
     * @return
     */
    @GetMapping("/list")
    public ResponseData list() {

        return ResponseData.success(appRechargePackageService.getRechargePackageList());
    }
}
